package com.example.member.api

import com.example.common.view.api.BaseApiService
import com.example.member.entity.MemberEntity
import com.example.member.entity.MembershipEntity
import com.example.member.model.MemResultData
import retrofit2.http.GET
import retrofit2.http.PUT
import retrofit2.http.Path
import retrofit2.http.Query

interface MemberApiService:BaseApiService{
    @GET("/memberships/{userId}")
    suspend fun getMember(@Path("userId")userId:Int):MemberEntity
    @PUT("/memberships/{userId}/upgrade")
    suspend fun getMemberUp(@Query("newMembershipLevel")newMembershipLevel:String,@Path("userId")userId:Int):MemberEntity
    @GET("/api/membership-benefits/{id}")
    suspend fun getMembership(@Path("id")id:Int):MembershipEntity
}